package com.retoc.oawx.service;

import com.retoc.oawx.domain.Ot;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.HashMap;

/**
* @author retoc
* @description 针对表【tb_ot】的数据库操作Service
* @createDate 2022-06-27 19:40:02
*/
public interface OtService extends IService<Ot> {

    int deleteByid(Integer id);

    ArrayList<HashMap> selectOtListByCreator(HashMap map);

    ArrayList<HashMap> selectOldOtListByCreator(HashMap map);

    HashMap selectOtById(Integer id);

    Ot selectOtByid(int id);

    int createOt(Ot ot);

    void approveOtByInstanceId(String instanceId);

    Ot selectOtByInstanceId(String instanceId);

    int updateOt(Ot ot);
}
